
# 
#  This material contains proprietary software of Entropic Speech, Inc.   
#  Any reproduction, distribution, or publication without the the prior	   
#  written permission of Entropic Speech, Inc. is strictly prohibited.
#  Any public distribution of copies of this work authorized in writing by
#  Entropic Speech, Inc. must bear the notice			
# 								
#      "Copyright (c) 1987 Entropic Speech, Inc.; All rights reserved"
# 				
#
# makefile for fft @(#)makefile	1.1 6/8/87 ESI
 	
CFLAGS = -DSCCS 
SPSLIB = /usr/lib/libesps.a
LIBES = -lesps
MANDIR = /usr/esps/man
SINC   = /usr/include/sps
BINDIR = /usr/esps/bin
OLDBIN = /usr/esps/bin/old
LINT = att lint
PROGMOD = 0750
MANMOD = 0640

FFTOBJS =	fft.o 
FFTSRCS = 	fft.c

fft:	$(FFTOBJS) $(SPSLIB) 
	cc -o fft $(CFLAGS) $(FFTOBJS) $(SPSLIB) -lm

fft.o:	$(SINC)/sps.h $(SINC)/sd.h $(SINC)/spec.h

lint:
	$(LINT) $(FFTSRCS) $(LINTLIB) -lm > fft.lin

install: fft
	-mv -f $(BINDIR)/fft $(OLDBIN)/fft
	-chmod $(PROGMOD) $(OLDBIN)/fft
	mv fft $(BINDIR)/fft
	-strip $(BINDIR)/fft
	chmod $(PROGMOD) $(BINDIR)/fft
	-diffmk  $(MANDIR)/man1/fft.1 fft.1 man.diff
	@echo diffmked man in man.diff
	-rm -f $(MANDIR)/man1/fft.1
	cp fft.1 $(MANDIR)/man1/fft.1
	chmod $(MANMOD) $(MANDIR)/man1/fft.1

clean: 
	rm -f fft $(FFTOBJS)
